cmake_minimum_required(VERSION 3.20)

project("HttpServerSln")

set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)

set(CMAKE_PREFIX_PATH C:/Qt/Qt5.9.0/5.9/msvc2015/lib/cmake/Qt5)

set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/bin)

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/bin)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/bin)

find_package(Qt5 COMPONENTS Widgets Core Network REQUIRED)

#target_compile_definitions(${PROJECT_NAME} PRIVATE "-DDECLSPEC=__declspec(dllexport)")

add_subdirectory(HttpServer)

add_subdirectory(TestQtPlugin)

add_subdirectory(TestHttpServer)
